/*
 * Created by JFormDesigner on Sun Nov 10 22:30:47 CST 2024
 */

package com.ch14;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * @author jjchen
 */
public class addStu extends JFrame {
    public addStu() {
        initComponents();
    }

    private void button1MouseClicked(MouseEvent e) {
        Home1 home2 =new Home1("ad");
        home2.setVisible(true);
        setVisible(false);
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        label1 = new JLabel();
        label2 = new JLabel();
        label3 = new JLabel();
        label4 = new JLabel();
        label5 = new JLabel();
        button1 = new JButton();
        comboBox1 = new JComboBox();
        comboBox2 = new JComboBox();
        textField1 = new JTextField();
        textField2 = new JTextField();

        //======== this ========
        var contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- label1 ----
        label1.setText("\u5b66\u751f\u4fe1\u606f\u6dfb\u52a0");
        contentPane.add(label1);
        label1.setBounds(150, 25, 145, label1.getPreferredSize().height);

        //---- label2 ----
        label2.setText("\u5b66\u53f7");
        contentPane.add(label2);
        label2.setBounds(95, 65, 50, 35);

        //---- label3 ----
        label3.setText("\u59d3\u540d");
        contentPane.add(label3);
        label3.setBounds(95, 100, 50, 35);

        //---- label4 ----
        label4.setText("\u5e74\u7ea7");
        contentPane.add(label4);
        label4.setBounds(95, 140, 50, 35);

        //---- label5 ----
        label5.setText("\u73ed\u7ea7");
        contentPane.add(label5);
        label5.setBounds(95, 180, 50, 35);

        //---- button1 ----
        button1.setText("\u6dfb\u52a0");
        button1.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                button1MouseClicked(e);
            }
        });
        contentPane.add(button1);
        button1.setBounds(new Rectangle(new Point(155, 230), button1.getPreferredSize()));
        contentPane.add(comboBox1);
        comboBox1.setBounds(190, 140, 125, 30);
        comboBox1.addItem("年级");
        comboBox1.addItem("2021");
        comboBox1.addItem("2022");
        comboBox1.addItem("2023");


        contentPane.add(comboBox2);
        comboBox2.setBounds(190, 185, 125, 29);
        comboBox2.addItem("班级");
        comboBox2.addItem("1班");
        comboBox2.addItem("2班");

        contentPane.add(textField1);
        textField1.setBounds(190, 70, 120, 25);
        contentPane.add(textField2);
        textField2.setBounds(190, 105, 120, 25);

        contentPane.setPreferredSize(new Dimension(455, 310));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JLabel label1;
    private JLabel label2;
    private JLabel label3;
    private JLabel label4;
    private JLabel label5;
    private JButton button1;
    private JComboBox comboBox1;
    private JComboBox comboBox2;
    private JTextField textField1;
    private JTextField textField2;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
